package com.yanqu.road.entity.wingroom.config;

import com.yanqu.road.entity.wingroom.RegionBlock;

import java.util.List;

/**
 * @author ：zfr
 * @date ：2022/2/15 17:07
 */
public class WingRoomRegionConfig {
    private int regionId;
    private int placeType;
    private List<RegionBlock> regionBlockList;

    public int getRegionId() {
        return regionId;
    }

    public int getPlaceType() {
        return placeType;
    }

    public List<RegionBlock> getRegionBlockList() {
        return regionBlockList;
    }

    public static final class WingRoomRegionConfigBuilder {
        private int regionId;
        private int placeType;
        private List<RegionBlock> regionBlockList;

        private WingRoomRegionConfigBuilder() {
        }

        public static WingRoomRegionConfigBuilder aWingRoomRegionConfig() {
            return new WingRoomRegionConfigBuilder();
        }

        public WingRoomRegionConfigBuilder withRegionId(int regionId) {
            this.regionId = regionId;
            return this;
        }

        public WingRoomRegionConfigBuilder withPlaceType(int placeType) {
            this.placeType = placeType;
            return this;
        }

        public WingRoomRegionConfigBuilder withRegionBlockList(List<RegionBlock> regionBlockList) {
            this.regionBlockList = regionBlockList;
            return this;
        }

        public WingRoomRegionConfig build() {
            WingRoomRegionConfig wingRoomRegionConfig = new WingRoomRegionConfig();
            wingRoomRegionConfig.placeType = this.placeType;
            wingRoomRegionConfig.regionId = this.regionId;
            wingRoomRegionConfig.regionBlockList = this.regionBlockList;
            return wingRoomRegionConfig;
        }
    }
}
